All Questions
5 questions
-1votes
2answers
913views
Where to place exception handling while using Decorator design pattern
How to design a service layer structure that will be resistant to exceptions. Let's say I have a simple OrderService service, this service performs basic operations - saving an order. public interface ...
0votes
3answers
5kviews
Design pattern to validate list of conditions
Background: I have a JSON object (named JSONConditionObject) which looks like the following, { "condition1":"value1", "condition2":"value2,value3 ..." ...
0votes
0answers
204views
Decorator Pattern Java
This is an object-oriented design question that is specific to Spring Boot. I'm extending a Spring Boot application that has an interface that is being extended and used inside another service. The ...
4votes
6answers
1kviews
What pattern can be used instead of these if statements in starbuzz (head first design patterns-Decorator pattern)
Reading Head First Design Patterns. I came to the chapter 3, the Decorator Pattern, Decorator Pattern is very clear for me. but one of the "sharpen your pencil" Our friends at Starbuzz have ...
1vote
2answers
272views
How to let the outside world decorate my private field?
Imagine a simple Controller (as in process control) interface. I have some concrete classes, say PIDController, that implement it. I also have some decorator classes that extend these classes somehow,...